import axios from '@/api/fetch';
import SERVER from '@/api/server';
//  营销项目大类列表
export const marketTypeList = params => axios.get(`${SERVER.CMSCLOUD_MARKET}/paramdefinition/marketType`, { params });

// 新增
export const addMarketType = params => axios.post(`${SERVER.CMSCLOUD_MARKET}/paramdefinition/marketType`, params);

// 修改
export const updateMarketType = (params, id) => axios.put(`${SERVER.CMSCLOUD_MARKET}/paramdefinition/marketType/${id}`, params);

// 获取大类
export const majorClass = (params, id) => axios.get(`${SERVER.CMSCLOUD_MARKET}/paramdefinition/marketType/majorList`, { params });
